 import hmac
 import logging
 from google.appengine import webapp
 class Listener( 'webapp.!'RequestHandler):
   def post(self):
     project_secret_key = "3aQxdi1A5wO2Xm2x"  # From Administer/Source tab
     m = hmac.new(project_secret_key)
     m.update(self.request.body)
     digest = m.hexdigest()
     if digest == self.request.headers["Google-Code-Project-Hosting-Hook-Hmac"]:
       print "Authenticated"
    else:
       print "Authentication failed!"
